Saturday to participate in the Webtech Eighth Web Exchange, about picture optimization, actually involves a PNG image instead of GIF, but in the Web page can not achieve transparency effect.
Look at the pictures of Taobao, in fact, are PNG. The
About 0x00
This article mainly analyzes PHP's use of the GD Library's imagecreatefrompng () function to reconstruct a PNG image may result in a local file inclusion vulnerability.
When the system exists the point that the file contains, can
PNG is the image format that we often use, but do you really know about PNG?This is a front-end sharing will, a bit of cold will take you to understand the PNG you do not know. There are three first questions:What is PNG?What are the features of PNG?
First, use the MFC CImage class to load PNG imagesTo test the effect of CImage drawing a PNG image, we use the software to intercept a 360 interface, and then use tools such as Photoshop to add a transparent area around the image and then save it as
PNG format and transparencyThis fireworks will be more clear, open the FIREWORKD optimization panel, you can clearly see the PNG has 3 different depths of the format: Png8, Png24, png32.Among them, in the optimization panel select Png8, you can find
Although have let IE6 support PNG transparent background of JS program, is not very convenient, or with CSS to achieve good. Use is: ie5.5+ 's AlphaImageLoader filter.
1.png Background Transparent
Solution:
Copy Code code as follows:
Background Images | Transparent PNG images play a very important role in web design, using the features of PNG images to produce practical, gorgeous results, but the support for PNG images is not ideal, Firefox and opera support PNG better,
Summary: JPG of photo class: banner, small GIF or PNG8gif format features:TransparencyGIF is a Boolean transparent type that can be either fully transparent or completely opaque, but it is not translucent (alpha transparent).AnimationGIF this format
Next, we introduce several PNG images in the IE6 opaque solution1, with their own PNG, let IE6 side to goThe first time you make a PNG image, save it as a GIF, because IE6 is a GIF image that supports transparency and then defines it in CSS. Pngtest
First, whether they are PNG, JPG, or GIF format, they have one thing in common, they are all picture formats, which can be generated directly from common cartographic software such as PS. Below, we introduce the characteristics and differences
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.